package com.jiermt.M0604;
import java.util.ArrayList;

public class Genericity1 {
    public static void main(String[] args) {
        ArrayList<String> arrayList = new ArrayList<String>();
        arrayList.add("hello");
        arrayList.add("world");
     //  arrayList.add(new Object());
        System.out.println(arrayList);


        for (int i = 0; i < arrayList.size(); i++) {
            String s = arrayList.get(i);
            System.out.println(arrayList.get(i));
        }
    }
}
